﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<script>
window.onload=function()
{
	if(parent.header!=null && parent.header!="")
	{
	    parent.document.location.href="/forms/common/login.aspx";
	}
}
</script>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="tr">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-9">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>Hedef Grup Arastirma</title>
    <link rel="stylesheet" type="text/css" href="/c/vk.css">
    <script language="javascript" type="text/javascript" src="/s/serverrequest.js"></script>
</head>
<body>
<center>
<br><br><br><br>
<img src='/i/mor_logo.gif'>
<form id="Form1" runat="server">
    <input type="hidden" name="project_selection" id="project_selection" value="<%=Global.PROJECT_QVN2013%>"/>
    <style>
        #projectSelectionTable td { border-bottom:1px solid #b5b5d0; padding-top:5px; }
        #projectSelectionTable img { border:1px solid gray; }
    </style>
    <table id="projectSelectionTable" align="center" class=table20 cellpadding=3 cellspacing=0 width=350 style='background-color:#FFFFFF;display:none'>
        <tr>
            <th colspan="2">
                Lütfen Proje Tipi Seçiniz
                <br /><br />
            </th>
        </tr>
        <tr id="project_qvn2013" style="cursor:pointer;" onclick="gotoLogin('qvn2013');" onmouseover="javascript:this.style.background='url(/i/prj_sel_bg.jpg)';" onmouseout="this.style.background='';">
            <td width="51%" align="right">
                <img src="/i/qvn.jpg" /></td>
            <td width="49%">
                <b>Q V N</b>
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr id="new_portal" style="cursor:pointer;display:none;" onclick="gotoLogin('new_portal');" onmouseover="javascript:this.style.background='url(/i/prj_sel_bg.jpg)';" onmouseout="this.style.background='';">
            <td width="51%" align="right" colspan="2" style="text-align:center;">
                <b>YENİ RAPOR PORTALI HİZMETE GİRDİ!</b><br /><br />
                Yeni Rapor Portalı sizlere daha iyi hizmet verebilmek amacı ile geliştirilmiştir.<br /><br />
                Yeni portalde QVN ve Renault Dinliyor projelerinin raporlarına yetkileriniz dahilinde erişebilirsiniz.<br /><br />
                Yönlendirilmek için lütfen tıklayınız..
            </td>
        </tr>
    </table>
    <style>
        #loginTable td { text-indent: 5px; }
    </style>
    <table id="loginTable" visible="false" runat="server" class=table20 cellpadding=0 cellspacing=0 height=60 width=300 style='background:url(/i/prj_sel_bg.jpg);background-color:#FFFFFF;border:1px solid black;'>
        <tr><td><b>Kullanıcı Kodu :</b></td><td><input type=textbox class=input8 id="user_name" name='user_name' value=''></td></tr>
        <tr><td><b>Parola :</b></td><td><input type=password class=input8 id="password" name="password" value=''>&nbsp;
        <input type="button" id="girisBtn" value='Giriş' style='border-style:solid;border-width:1px;height:20px;font-size:11px;' onclick="javascript:ajaxLogin();"/></td></tr>
    </table>
    <div id="under_construction" runat="server">
	<h1>
	    İyileştirme çalışması nedeniyle bir süre hizmet veremiyoruz
	    <br /><br />
	    Hedef Grup Araştırma
	</h1>
    </div>
</form>

<p style="font-weight:bold;font-family:verdana,tahoma,arial;font-size:12px;color:maroon;"><asp:Literal id="err" runat="server" /></p>
<br /><br />
<script language="javascript">
    // Mouse.Initialize();
    function ajaxLogin()
    {
        function g(id) { return document.getElementById(id); }
        ServerRequest.Execute("/jsCommand/ajaxLogin.aspx", _Constants.Method.Post, Array("u", g("user_name").value, "p", g("password").value));
    }

    function gotoLogin(prj)
    {
        ServerRequest.Execute("/jsCommand/ajaxLogin.aspx", _Constants.Method.Post, Array("prj", prj));
    }

    ServerRequest.Execute("/jsCommand/ajaxLogin.aspx", _Constants.Method.Post, new Array());
    
</script>

</center>
</body>
</html>

